import request from '@/utils/request'
import { getToken } from '@/utils/auth'

// 导出自定义表单模板
export function excelCustomFormTemplate(moduleCode, enterpriseId) {
  return process.env.BASE_API + '/custom/customForm/excelCustomForm?moduleCode=' + moduleCode + '&enterpriseId=' + enterpriseId + '&accessToken=' + getToken()
}

// 导入自定义表单
export function importCustomForm(moduleCode, enterpriseId, fileUrl) {
  return request({
    url: '/custom/customForm/importCustomForm',
    method: 'get',
    params: { moduleCode, enterpriseId, fileUrl }
  })
}
